package net.lainiao.morethread.Chapter4.demo8;

import java.util.concurrent.Callable;

/**
 * Created by Administrator on 2017/3/3.
 */
public class Task implements Callable<String> {

    @Override
    public String call() throws InterruptedException {
        while (true){
            System.out.println("Task:Test");
            Thread.sleep(100);
        }
    }
}
